package sapling.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;
import sapling.model.Admin;
import sapling.model.Log;
import sapling.model.Tree;

import java.util.List;

/**
 * Created by ever on 2016/10/9.
 */

public interface LogDao extends JpaRepository<Log, Long> {

    @Query(value = "SELECT  * from log where  operationtime BETWEEN ?1 and ?2 ",nativeQuery = true)
    List<Log> findSE(String strat,String end);
}
